pandas.git
7 weeks agoMerge version 2.2.3+dfsg-9+rpi1 and 2.3.3+dfsg-3 to produce 2.3.3+dfsg-3+rpi1 forky-staging archive/raspbian/2.3.3+dfsg-3+rpi1 raspbian/2.3.3+dfsg-3+rpi1
Raspbian automatic forward porter [Tue, 13 Jan 2026 21:57:37 +0000 (21:57 +0000)]
Merge version 2.2.3+dfsg-9+rpi1 and 2.3.3+dfsg-3 to produce 2.3.3+dfsg-3+rpi1

2 months agoMerge pandas (2.3.3+dfsg-3) import into refs/heads/workingbranch
Graham Inggs [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Merge pandas (2.3.3+dfsg-3) import into refs/heads/workingbranch

2 months agoBe compatible with Python 3.14
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Be compatible with Python 3.14

Accept new (Python 3.14) wording of error messages
Ignore some ResourceWarnings

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1121955
Forwarded: no

Gbp-Pq: Name python3p14_compat.patch

2 months agonumexpr 2.13.1 removed some warnings
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
numexpr 2.13.1 removed some warnings

Origin: upstream 5fc3df37d772befbdba7cc2bd3e9ce572fe607c0
Author: Álvaro Kothe
Forwarded: not-needed

Gbp-Pq: Name numexpr_v2p13_compat.patch

2 months agoignore expected DeprecationWarning
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
ignore expected DeprecationWarning

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_bitwiseinversion_deprecation.patch

2 months agoIgnore warning added in matplotlib 3.10
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Ignore warning added in matplotlib 3.10

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1101527
Forwarded: no

Gbp-Pq: Name 1101527_matplotlib3p10.patch

2 months agoIgnore failing tests
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Ignore failing tests

(to unblock transition, not a real fix)

pandas upstream (as of 2025-03-29) are restricting xarray version
to avoid this (#60109; no known-to-me real fix)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1088988
Forwarded: not-needed

Gbp-Pq: Name ignore_test_1088988.patch

2 months agoUse local logo file
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Use local logo file

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name privacy2.patch

2 months agoFix some xarray fails, test others
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Fix some xarray fails, test others

Tests failing with newer xarray

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: partly https://github.com/pydata/xarray/issues/9661
Bug-Debian: https://bugs.debian.org/1088988
Forwarded: no

Gbp-Pq: Name 1088988_xarray_pyreadstat_compat.patch

2 months agodatetime does not work with non-constant pytz.timezone
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
datetime does not work with non-constant pytz.timezone

This has always been the case (and is explicitly warned about
in the pytz documentation), but became a test fail when
tzdata 2024b changed 'CET' and similar to aliases.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name no_pytz_datetime.patch

2 months agoStop using pkg_resources
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Stop using pkg_resources

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1083523
Forwarded: no, it would crash on Macs

Gbp-Pq: Name no_pkg_resources.patch

2 months agoUse nonstrict xfail
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Use nonstrict xfail

Upstream strict-xfailed this instead of changing the expected message,
which doesn't work here because it only fails in build, not autopkgtest

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name blosc_nonstrict_xfail.patch

2 months agoAvoid failing when a dependency is too old
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Avoid failing when a dependency is too old

(some of them are pulled in by other dependencies, so
just not including them in d/control doesn't stop them being installed)

Most of the content of this patch was generated by the following Python code:

import pathlib
import re

basedir = pathlib.Path.cwd()
if not (basedir / 'pandas/tests').exists():
    raise FileNotFoundError('must be run from the pandas root')
for source_file in basedir.glob('pandas/**/*.py'):
    with open(source_file, 'r') as fd:
        source_text = fd.read()
    if 'pytest.importorskip' in source_text:
        source_text = re.sub(r'pytest\.importorskip(.*)minversion', r'td.versioned_importorskip\1min_version', source_text)
        source_text = re.sub(r'pytest\.importorskip', r'td.versioned_importorskip', source_text)
        if '_test_decorators as td' not in source_text:
            # add the import if it isn't already present
            source_text, count = re.subn(r'^(import pandas|from pandas.*import)',r'import pandas.util._test_decorators as td\n\1', source_text, count=1, flags=re.MULTILINE)
            if count != 1:
                raise KeyError("failed to add import")
        with open(source_file, 'w') as fd:
            fd.write(source_text)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name versioned_importorskip.patch

2 months agoDon't require 32-bit to be time32
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't require 32-bit to be time32

Debian armhf/armel (but not i386) are now time64

Author: Graham Inggs, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1068104
Forwarded: no

Gbp-Pq: Name 1068104_time64.patch

2 months agoDon't fail sum test on near-cancelling inputs
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't fail sum test on near-cancelling inputs

Failed in 1.5.3+dfsg-11 after it happened to select an input that
cancelled to ~1e-5 (on i386, so x87 excess precision might be involved)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name sum_loosen_test_tolerance.patch

2 months agoIgnore pytables test failures with Python 3.12
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Ignore pytables test failures with Python 3.12

The combined xfails are because two separate xfails where only one
has run=False may run, which is a problem when the run=False exists
to avoid a crash - see 1.5.3+dfsg-8 armhf build log

Bug-Debian: https://bugs.debian.org/1055801
Bug-Ubuntu: https://launchpad.net/ubuntu/+bug/2043895
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name pytables_python3p12.patch

2 months agoFix test failures when xlsxwriter is not installed
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Fix test failures when xlsxwriter is not installed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name 2p1_openpyxl_errors.patch

2 months agoMark tests that need openpyxl
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Mark tests that need openpyxl

(These do the usual loop through engine/read_ext but
actually use .xlsx every time)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_openpyxl.patch

2 months agoWork around xarray wrongly reporting its version
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Work around xarray wrongly reporting its version

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name xarray_version_workaround.patch

2 months agoIgnore exceptions in documentation examples
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Ignore exceptions in documentation examples

Some examples download data, and/or depend on
packages Debian doesn't have, so can't run in a Debian build

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name ignore_ipython_exceptions.patch

2 months agoDon't crash on clean
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't crash on clean

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name unbreak_clean.patch

2 months agoDon't try to run matplotlib-using tests without it
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't try to run matplotlib-using tests without it

This allows the circular pandas <-> matplotlib dependency
to be broken for bootstrapping (see README.source)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_matplotlib.patch

2 months agoOn mips, 1**np.nan and np.nan**0 may be NaN not 1
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
On mips, 1**np.nan and np.nan**0 may be NaN not 1

Done this way not a plain xfail to allow only this difference,
not clearly wrong answers

(The same hardware's "invalid value encountered" warnings,
probably from sNaN/qNaN being reversed, are ignored elsewhere:
d/rules and xfail_tests_nonintel_io.patch)

https://en.wikipedia.org/wiki/NaN#Encoding

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name mips_pow_nan.patch

2 months agoWarn that numba may not work on non-x86
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Warn that numba may not work on non-x86

Currently known issues are crashes, not wrong answers, but because
the test setup doesn't allow ignoring crashes but failing on
wrong answers, it would be easy to not notice if this changed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_warn_nonx86.patch

2 months agoDon't require python3-tzdata
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't require python3-tzdata

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1043968
Forwarded: no

Gbp-Pq: Name accept_system_tzdata.patch

2 months agoDon't assume little-endian in test references
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't assume little-endian in test references

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name tests_dont_assume_endian.patch

2 months agoDon't fail plot tests on rounding error
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't fail plot tests on rounding error

(upstream seem to have _disabled_ the affected tests
...see also test_series)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1029251
Forwarded: no

Gbp-Pq: Name 1029251_ignore_rounding_error.patch

2 months agoDon't require a warning armel numpy doesn't have
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't require a warning armel numpy doesn't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no (this version requires dpkg)

Gbp-Pq: Name armel_ignore_nonwarning.patch

2 months agoFix test failures on 32-bit systems
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Fix test failures on 32-bit systems

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: partly https://bugs.debian.org/1026351
Forwarded: no

Gbp-Pq: Name tests_dont_assume_64bit.patch

2 months agoFix arch-specific upstream xfails
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Fix arch-specific upstream xfails

We test on more architectures, so upstream's xfails are not always
correct everywhere.  On those known to fail:
arm64 xfail -> all non-x86 xfail
x86 or unconditional strict xfail -> unconditional nonstrict xfail

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/pandas-dev/pandas/issues/38921, https://github.com/pandas-dev/pandas/issues/38798, https://github.com/pandas-dev/pandas/issues/41740, https://github.com/numpy/numpy/issues/19146
Forwarded: no

Gbp-Pq: Name fix_overly_arch_specific_xfails.patch

2 months agoSkip test that fails from outside the source tree
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Skip test that fails from outside the source tree

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name skip_test_missing_required_dependency.patch

2 months agoAvoid test failures on Hurd
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Avoid test failures on Hurd

Allow multiprocessing to be unavailable
Accept any errno not just 2 for (intentionally) nonexistent files
(Hurd appears to use 2**30+2)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name hurd_compat.patch

2 months agoAllow some numba errors on 32-bit
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Allow some numba errors on 32-bit

Specifying the exception type allows only explicit errors,
not silently wrong answers

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_fail_32bit.patch

2 months agoRemove code from Stack Overflow
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Remove code from Stack Overflow

Stack Overflow content is CC-BY-SA licensed,
which this package is not supposed to be.  These snippets may be
too small to be copyrightable, but removing them to be safe.

https://lists.debian.org/debian-legal/2020/04/threads.html#00018

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no - deletes some tests/examples without replacement

Gbp-Pq: Name remove_ccbysa_snippets.patch

2 months agoAllow tests to use the data files in the source tree
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Allow tests to use the data files in the source tree

We don't ship these in the package,
but do want to run the tests that use them

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: https://github.com/pandas-dev/pandas/issues/54907

Gbp-Pq: Name find_test_data.patch

2 months agoLink to rather than embed Google calendar
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Link to rather than embed Google calendar

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name privacy.patch

2 months agoUse fixed seeds for reproducible pseudorandomness
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Use fixed seeds for reproducible pseudorandomness

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name fix_random_seeds.patch

2 months agoDon't try to read a contributor list from the git log
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't try to read a contributor list from the git log

Debian packages are built from tarballs, so there isn't a git log.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name contributor_list_not_in_tarball.patch

2 months agoUse packaged intersphinx indexes
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Use packaged intersphinx indexes

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/876417
Forwarded: not-needed

Gbp-Pq: Name use_system_intersphinx.patch

2 months agoUse Debian packaged mathjax
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Use Debian packaged mathjax

Author: Andreas Tille <tille@debian.org>
Forwarded: not-needed

Gbp-Pq: Name mathjax-path.patch

2 months agoAvoid privacy breach by analytics
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Avoid privacy breach by analytics

Author: Yaroslav Halchenko <debian@onerussian.com>,
        Andreas Tille <tille@debian.org>,
        Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name deb_disable_analytics.patch

2 months agoHDF5 and Stata I/O are broken on some architectures
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
HDF5 and Stata I/O are broken on some architectures

Fix some issues, warn on use and xfail tests for the remainder

Everything that has a run=False xfail in here should also be in
the run-and-ignore set in debian/tests/numbatests

armhf TestHDF5Store::test*encoding only sometimes crashes
(1.1.3+dfsg-1 passed on build but failed autopkgtest)

HDF5 and Stata are known to fail on big-endian architectures
(the pandas/tests/io/test_common.py patch for hdf5 was removed in
2.3.1 because that test is currently xfailed upstream for other
reasons - it may need to be re-added if this is fixed)
Stata was previously seen to fail on qemu-ppc64el, but not real ppc64el

Author: Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Yaroslav Halchenko <debian@onerussian.com>, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/877419
Bug: partly https://github.com/pandas-dev/pandas/issues/54396
Forwarded: no

Gbp-Pq: Name xfail_tests_nonintel_io.patch

2 months agoDon't try to import from the source directory
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Don't try to import from the source directory

Needed as we build the extension modules elsewhere

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH.patch

2 months agoIn tests, expect a non-git version number
Debian Science Maintainers [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
In tests, expect a non-git version number

(This number is set in debian/rules.)

Needed as Debian buildds use tarballs

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name deb_nonversioneer_version.patch

2 months agopandas (2.3.3+dfsg-3) unstable; urgency=medium
Graham Inggs [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
pandas (2.3.3+dfsg-3) unstable; urgency=medium

  [ Graham Inggs ]
  * Team upload

  [ Rebecca N. Palmer ]
  * Tests: accept Python 3.14 wording of (expected) error messages
    (Closes: #1121955) and ignore new ResourceWarnings,
    improve cleanup, remove another dependency on python3-py,
    unconditionally require pyqt5 (Closes: #1119724).
  * Salsa CI: disable mostly-useless debrebuild.

[dgit import unpatched pandas 2.3.3+dfsg-3]

2 months agoImport pandas_2.3.3+dfsg-3.debian.tar.xz
Graham Inggs [Tue, 9 Dec 2025 11:19:37 +0000 (11:19 +0000)]
Import pandas_2.3.3+dfsg-3.debian.tar.xz

[dgit import tarball pandas 2.3.3+dfsg-3 pandas_2.3.3+dfsg-3.debian.tar.xz]

5 months agoImport pandas_2.3.3+dfsg.orig.tar.xz
Rebecca N. Palmer [Mon, 6 Oct 2025 15:54:01 +0000 (16:54 +0100)]
Import pandas_2.3.3+dfsg.orig.tar.xz

[dgit import orig pandas_2.3.3+dfsg.orig.tar.xz]

10 months agoMerge version 2.2.3+dfsg-7+rpi1 and 2.2.3+dfsg-9 to produce 2.2.3+dfsg-9+rpi1 trixie-staging archive/raspbian/2.2.3+dfsg-9+rpi1 raspbian/2.2.3+dfsg-9+rpi1
Raspbian automatic forward porter [Wed, 9 Apr 2025 02:40:44 +0000 (03:40 +0100)]
Merge version 2.2.3+dfsg-7+rpi1 and 2.2.3+dfsg-9 to produce 2.2.3+dfsg-9+rpi1

11 months agoMerge pandas (2.2.3+dfsg-9) import into refs/heads/workingbranch
Rebecca N. Palmer [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Merge pandas (2.2.3+dfsg-9) import into refs/heads/workingbranch

11 months agoIgnore warning added in matplotlib 3.10
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Ignore warning added in matplotlib 3.10

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1101527
Forwarded: no

Gbp-Pq: Name 1101527_matplotlib3p10.patch

11 months agoIgnore failing tests
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Ignore failing tests

(to unblock transition, not a real fix)

pandas upstream (as of 2025-03-29) are xfailing the first #60873
(real fix in dask 2025.2.0)
and restricting xarray version to avoid the second #60109
(no known-to-me real fix)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1094417 and 1088988
Forwarded: not-needed

Gbp-Pq: Name ignore_test_1094417_1088988.patch

11 months agoAvoid test crash
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Avoid test crash

First seen on numpy2 transition, unknown if actually related to that

Author: Matthew Roeschke
Origin: upstream pull 60416
Forwarded: not-needed

Gbp-Pq: Name value_counts_nat_numpy2.patch

11 months agoUse local logo file
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Use local logo file

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name privacy2.patch

11 months agoFix pyreadstat and some xarray fails, test others
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Fix pyreadstat and some xarray fails, test others

Tests failing with newer xarray and/or pyreadstat

Author: Richard Shadrach, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Origin: partly https://github.com/pandas-dev/pandas/pull/60109
Bug: partly https://github.com/pydata/xarray/issues/9661
Bug-Debian: https://bugs.debian.org/1088988
Forwarded: no

Gbp-Pq: Name 1088988_xarray_pyreadstat_compat.patch

11 months agodatetime does not work with non-constant pytz.timezone
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
datetime does not work with non-constant pytz.timezone

This has always been the case (and is explicitly warned about
in the pytz documentation), but became a test fail when
tzdata 2024b changed 'CET' and similar to aliases.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name no_pytz_datetime.patch

11 months agoStop using pkg_resources
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Stop using pkg_resources

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1083523
Forwarded: no, it would crash on Macs

Gbp-Pq: Name no_pkg_resources.patch

11 months agoUse nonstrict xfail
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Use nonstrict xfail

Upstream strict-xfailed this instead of changing the expected message,
which doesn't work here because it only fails in build, not autopkgtest

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name blosc_nonstrict_xfail.patch

11 months agoSkip tests when dependencies are missing
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Skip tests when dependencies are missing

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name add_missing_importorskip.patch

11 months agoAvoid failing when a dependency is too old
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Avoid failing when a dependency is too old

(some of them are pulled in by other dependencies, so
just not including them in d/control doesn't stop them being installed)

Most of the content of this patch was generated by the following Python code:

import pathlib
import re

basedir = pathlib.Path.cwd()
if not (basedir / 'pandas/tests').exists():
    raise FileNotFoundError('must be run from the pandas root')
for source_file in basedir.glob('pandas/**/*.py'):
    with open(source_file, 'r') as fd:
        source_text = fd.read()
    if 'pytest.importorskip' in source_text:
        source_text = re.sub(r'pytest\.importorskip(.*)minversion', r'td.versioned_importorskip\1min_version', source_text)
        source_text = re.sub(r'pytest\.importorskip', r'td.versioned_importorskip', source_text)
        if '_test_decorators as td' not in source_text:
            # add the import if it isn't already present
            source_text, count = re.subn(r'^(import pandas|from pandas.*import)',r'import pandas.util._test_decorators as td\n\1', source_text, count=1, flags=re.MULTILINE)
            if count != 1:
                raise KeyError("failed to add import")
        with open(source_file, 'w') as fd:
            fd.write(source_text)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name versioned_importorskip.patch

11 months agoDon't require 32-bit to be time32
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't require 32-bit to be time32

Debian armhf/armel (but not i386) are now time64

Author: Graham Inggs, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1068104
Forwarded: no

Gbp-Pq: Name 1068104_time64.patch

11 months agoDon't fail sum test on near-cancelling inputs
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't fail sum test on near-cancelling inputs

Failed in 1.5.3+dfsg-11 after it happened to select an input that
cancelled to ~1e-5 (on i386, so x87 excess precision might be involved)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name sum_loosen_test_tolerance.patch

11 months agoIgnore DeprecationWarnings from Python 3.12
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Ignore DeprecationWarnings from Python 3.12

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_python3p12_deprecations.patch

11 months agoIgnore pytables test failures with Python 3.12
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Ignore pytables test failures with Python 3.12

The combined xfails are because two separate xfails where only one
has run=False may run, which is a problem when the run=False exists
to avoid a crash - see 1.5.3+dfsg-8 armhf build log

Bug-Debian: https://bugs.debian.org/1055801
Bug-Ubuntu: https://launchpad.net/ubuntu/+bug/2043895
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name pytables_python3p12.patch

11 months agoFix test failures when xlsxwriter is not installed
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Fix test failures when xlsxwriter is not installed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name 2p1_openpyxl_errors.patch

11 months agoMark tests that need openpyxl
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Mark tests that need openpyxl

(These do the usual loop through engine/read_ext but
actually use .xlsx every time)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_openpyxl.patch

11 months agoWork around xarray wrongly reporting its version
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Work around xarray wrongly reporting its version

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name xarray_version_workaround.patch

11 months agoIgnore exceptions in documentation examples
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Ignore exceptions in documentation examples

Some examples download data, and/or depend on
packages Debian doesn't have, so can't run in a Debian build

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name ignore_ipython_exceptions.patch

11 months agoDon't crash on clean
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't crash on clean

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name unbreak_clean.patch

11 months agoDon't try to run matplotlib-using tests without it
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't try to run matplotlib-using tests without it

This allows the circular pandas <-> matplotlib dependency
to be broken for bootstrapping (see README.source)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_matplotlib.patch

11 months agoOn mips, 1**np.nan and np.nan**0 may be NaN not 1
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
On mips, 1**np.nan and np.nan**0 may be NaN not 1

Done this way not a plain xfail to allow only this difference,
not clearly wrong answers

(The same hardware's "invalid value encountered" warnings,
probably from sNaN/qNaN being reversed, are ignored elsewhere:
d/rules and xfail_tests_nonintel_io.patch)

https://en.wikipedia.org/wiki/NaN#Encoding

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name mips_pow_nan.patch

11 months agoWarn that numba may not work on non-x86
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Warn that numba may not work on non-x86

Currently known issues are crashes, not wrong answers, but because
the test setup doesn't allow ignoring crashes but failing on
wrong answers, it would be easy to not notice if this changed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_warn_nonx86.patch

11 months agoDon't require python3-tzdata
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't require python3-tzdata

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1043968
Forwarded: no

Gbp-Pq: Name accept_system_tzdata.patch

11 months agoDon't assume little-endian in test references
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't assume little-endian in test references

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name tests_dont_assume_endian.patch

11 months agoDon't fail plot tests on rounding error
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't fail plot tests on rounding error

(upstream seem to have _disabled_ the affected tests
...see also test_series)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1029251
Forwarded: no

Gbp-Pq: Name 1029251_ignore_rounding_error.patch

11 months agoDon't require a warning armel numpy doesn't have
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't require a warning armel numpy doesn't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no (this version requires dpkg)

Gbp-Pq: Name armel_ignore_nonwarning.patch

11 months agoFix test failures on 32-bit systems
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Fix test failures on 32-bit systems

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: partly https://bugs.debian.org/1026351
Forwarded: no

Gbp-Pq: Name tests_dont_assume_64bit.patch

11 months agoFix arch-specific upstream xfails
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Fix arch-specific upstream xfails

We test on more architectures, so upstream's xfails are not always
correct everywhere.  On those known to fail:
arm64 xfail -> all non-x86 xfail
x86 or unconditional strict xfail -> unconditional nonstrict xfail

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/pandas-dev/pandas/issues/38921, https://github.com/pandas-dev/pandas/issues/38798, https://github.com/pandas-dev/pandas/issues/41740, https://github.com/numpy/numpy/issues/19146
Forwarded: no

Gbp-Pq: Name fix_overly_arch_specific_xfails.patch

11 months agoSkip test that fails from outside the source tree
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Skip test that fails from outside the source tree

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name skip_test_missing_required_dependency.patch

11 months agoAvoid test failures on Hurd
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Avoid test failures on Hurd

Allow multiprocessing to be unavailable
Accept any errno not just 2 for (intentionally) nonexistent files
(Hurd appears to use 2**30+2)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name hurd_compat.patch

11 months agoAllow some numba errors on 32-bit
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Allow some numba errors on 32-bit

Specifying the exception type allows only explicit errors,
not silently wrong answers

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_fail_32bit.patch

11 months agoRemove code from Stack Overflow
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Remove code from Stack Overflow

Stack Overflow content is CC-BY-SA licensed,
which this package is not supposed to be.  These snippets may be
too small to be copyrightable, but removing them to be safe.

https://lists.debian.org/debian-legal/2020/04/threads.html#00018

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no - deletes some tests/examples without replacement

Gbp-Pq: Name remove_ccbysa_snippets.patch

11 months agoAllow tests to use the data files in the source tree
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Allow tests to use the data files in the source tree

We don't ship these in the package,
but do want to run the tests that use them

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: https://github.com/pandas-dev/pandas/issues/54907

Gbp-Pq: Name find_test_data.patch

11 months agoLink to rather than embed Google calendar
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Link to rather than embed Google calendar

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name privacy.patch

11 months agoUse fixed seeds for reproducible pseudorandomness
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Use fixed seeds for reproducible pseudorandomness

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name fix_random_seeds.patch

11 months agoDon't try to read a contributor list from the git log
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't try to read a contributor list from the git log

Debian packages are built from tarballs, so there isn't a git log.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name contributor_list_not_in_tarball.patch

11 months agoUse packaged intersphinx indexes
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Use packaged intersphinx indexes

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/876417
Forwarded: not-needed

Gbp-Pq: Name use_system_intersphinx.patch

11 months agoUse Debian packaged mathjax
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Use Debian packaged mathjax

Author: Andreas Tille <tille@debian.org>
Forwarded: not-needed

Gbp-Pq: Name mathjax-path.patch

11 months agoAvoid privacy breach by analytics
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Avoid privacy breach by analytics

Author: Yaroslav Halchenko <debian@onerussian.com>,
        Andreas Tille <tille@debian.org>,
        Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name deb_disable_analytics.patch

11 months agoHDF5 and Stata I/O are broken on some architectures
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
HDF5 and Stata I/O are broken on some architectures

Fix some issues, warn on use and xfail tests for the remainder

Everything that has a run=False xfail in here should also be in
the run-and-ignore set in debian/tests/numbatests

armhf TestHDF5Store::test*encoding only sometimes crashes
(1.1.3+dfsg-1 passed on build but failed autopkgtest)

HDF5 and Stata are known to fail on big-endian architectures
Stata was previously seen to fail on qemu-ppc64el, but not real ppc64el

Author: Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Yaroslav Halchenko <debian@onerussian.com>, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/877419
Bug: partly https://github.com/pandas-dev/pandas/issues/54396
Forwarded: no

Gbp-Pq: Name xfail_tests_nonintel_io.patch

11 months agoDon't try to import from the source directory
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't try to import from the source directory

Needed as we build the extension modules elsewhere

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH.patch

11 months agoDon't try to use git to find the version number
Debian Science Team [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Don't try to use git to find the version number

Needed as Debian buildds use tarballs

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_nonversioneer_version.patch

11 months agopandas (2.2.3+dfsg-9) unstable; urgency=medium
Rebecca N. Palmer [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
pandas (2.2.3+dfsg-9) unstable; urgency=medium

  * Tests: ignore warning added in matplotlib 3.10. (Closes: #1101527)
  * Tests: run but ignore more (already) xfailed tests,
    but less verbosely to not overflow the log.
  * Tests: remove no longer needed xfails (#1068422 has been fixed).

[dgit import unpatched pandas 2.2.3+dfsg-9]

11 months agoImport pandas_2.2.3+dfsg-9.debian.tar.xz
Rebecca N. Palmer [Sat, 29 Mar 2025 13:01:52 +0000 (13:01 +0000)]
Import pandas_2.2.3+dfsg-9.debian.tar.xz

[dgit import tarball pandas 2.2.3+dfsg-9 pandas_2.2.3+dfsg-9.debian.tar.xz]

12 months agoMerge version 2.2.3+dfsg-5+rpi1 and 2.2.3+dfsg-7 to produce 2.2.3+dfsg-7+rpi1 archive/raspbian/2.2.3+dfsg-7+rpi1 raspbian/2.2.3+dfsg-7+rpi1
Raspbian automatic forward porter [Fri, 7 Feb 2025 19:00:22 +0000 (19:00 +0000)]
Merge version 2.2.3+dfsg-5+rpi1 and 2.2.3+dfsg-7 to produce 2.2.3+dfsg-7+rpi1

13 months agoMerge pandas (2.2.3+dfsg-5+rpi1) import into refs/heads/workingbranch
Peter Michael Green [Sun, 2 Feb 2025 11:17:13 +0000 (11:17 +0000)]
Merge pandas (2.2.3+dfsg-5+rpi1) import into refs/heads/workingbranch

13 months agodatetime does not work with non-constant pytz.timezone
Debian Science Team [Sun, 2 Feb 2025 11:17:13 +0000 (11:17 +0000)]
datetime does not work with non-constant pytz.timezone

This has always been the case (and is explicitly warned about
in the pytz documentation), but became a test fail when
tzdata 2024b changed 'CET' and similar to aliases.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name no_pytz_datetime.patch

13 months agoStop using pkg_resources
Debian Science Team [Sun, 2 Feb 2025 11:17:13 +0000 (11:17 +0000)]
Stop using pkg_resources

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1083523
Forwarded: no, it would crash on Macs

Gbp-Pq: Name no_pkg_resources.patch

13 months agoRe-add test skips dropped in 2.2.3
Debian Science Team [Sun, 2 Feb 2025 11:17:13 +0000 (11:17 +0000)]
Re-add test skips dropped in 2.2.3

Dropped because they apparently aren't needed in 3.x;
unknown if this is 2.x vs 3.x or i386 vs arm*

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name skiptests_intervaltree_32bit.patch

13 months agoUse nonstrict xfail
Debian Science Team [Sun, 2 Feb 2025 11:17:13 +0000 (11:17 +0000)]
Use nonstrict xfail

Upstream strict-xfailed this instead of changing the expected message,
which doesn't work here because it only fails in build, not autopkgtest

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name blosc_nonstrict_xfail.patch

13 months agoSkip tests when dependencies are missing
Debian Science Team [Sun, 2 Feb 2025 11:17:13 +0000 (11:17 +0000)]
Skip tests when dependencies are missing

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name add_missing_importorskip.patch